<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>自主招生报名</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta name="apple-mobile-web-app-status-bar-style" content="default"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta name="format-detection" content="telephone=no"/>
    <link href="${s.base}/mobile/css/weui.min.css" rel="stylesheet" />
    <link href="${s.base}/mobile/css/jquery-weui.css" rel="stylesheet"/>
    <link href="${s.base}/mobile/css/jquery-weui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="${s.base}/mobile/css/enrollment/zzzs.css"/>
</head>
<body>
    <div class="main-content75" style="background:#029FE4;">
        <div class="zsjz-title">${enrollmentRelease.name}</div>
        <div class="zsjz-school-title">${enrollmentRelease.unit}</div>
        <div class="zsjz-school-time">${enrollmentRelease.startTimeStr}—${enrollmentRelease.endTimeStr}</div>
        <div class="zsjz-content">
            ${enrollmentRelease.ruleDetail}
        </div>
        <div class="zsjz-libm-btn-ctn zsjz-libm-btn-ctn-unable" onclick="toPagePhoto()"><div class="zsjz-libm-btn zsjz-libm-btn-unable" id="register-btn">立即报名(5s)</div></div>
    </div>
</body>
<script type="text/javascript" src="${s.base}/mobile/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/jquery-weui.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/fontSize.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/common.js"></script>
<script type="text/javascript">
    $(function () {
        setTimeout(function () {
            readPage();
        }, 1000);
    });

    var readTime = 5;
    function readPage() {
        if(readTime <= 1){
            $("#register-btn").html("立即报名");
            $("#register-btn").removeClass("zsjz-libm-btn-unable");
            $("#register-btn").parents(".zsjz-libm-btn-ctn").removeClass("zsjz-libm-btn-ctn-unable");
        }else{
            readTime--;
            $("#register-btn").html("立即报名("+readTime+"s)");

            setTimeout(function () {
                readPage();
            }, 1000);
        }
    }


    function toPagePhoto() {
        window.location.href= '/phone/enrollment/infoPhoto?releaseId=${releaseId}&token=${token}&applyId=${applyId}';
    }
</script>
</html>
